﻿using FluentValidation;

namespace WYT.Usr.Application.Contracts.Dtos.User.DtoValidators
{
    /// <summary>
    /// 
    /// </summary>
    public class UserRegistrationCodeDtoValidator : AbstractValidator<UserRegistrationCodeDto>
    {
        /// <summary>
        /// 
        /// </summary>
        public UserRegistrationCodeDtoValidator()
        {
            RuleFor(x => x.Code).NotEmpty().NotNull();
            RuleFor(x => x.ReferrerID).NotEmpty();
        }
    }
}
